package com.lu.system.user.dao;

import com.lu.system.user.domain.UserRoleDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 用户与角色对应关系
 * @author zhanglu
 * @email 1309617271@qq.com
 * @date 2018-09-20 21:05:03
 */
@Mapper
public interface UserRoleDao {

	UserRoleDO get(Long id);
	
	List<UserRoleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserRoleDO userRole);

    void saveBatch(List<UserRoleDO> list);
	
	int update(UserRoleDO userRole);

    void updateBatch(List<UserRoleDO> list);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
